package com.wyh.domain.po.g3po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 组织表
 * </p>
 *
 * @author 唐书亮
 * @since 2024-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("organization")
public class G3Organization implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "id" ,example = "1")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称" ,example = "cq")
    private String name;

    /**
     * 上级组织id
     */
    @ApiModelProperty(value = "上级组织id")
    private Integer superiorid;


    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private Integer state;

    /*
    * 子资源
    * */
    @ApiModelProperty(value = "子资源")
    @TableField(exist = false)
    private List<G3Organization> children;


}
